package com.ireadbooks.common;

/**
 * @program: spring-event-threadpool
 * @description: 订单状态枚举
 * @author: wutao
 * @create: 2020/04/04 17:33
 **/
public enum OrderStatusEnum {
    //0 初始化 1 支付完成 2 已发货 3 已签收 4 绝收 5 退货 6 完成
    INIT(0,"待支付"),
    PAYED(1,"支付完成"),
    SEND(2,"已发货"),
    RECEVED(3,"已签收"),
    REJECT(4,"绝收"),
    RETURN(5,"退货"),
    FINISH(6,"完成"),
    ;

    private final Integer code; //枚举code
    private final String codeName; //枚举code名称

    OrderStatusEnum(Integer code, String codeName) {
        this.code = code;
        this.codeName = codeName;
    }

    public Integer getCode() {
        return code;
    }

    public String getCodeName() {
        return codeName;
    }
}
